<!DOCTYPE html>
<html>
  <head>
    <style>
      .div1 {
        display: inline-block;
        width: 100px;
        height: 100px;
        background: red;
        margin-bottom: 10px;
      }
      .div2 {
        width: 100px;
        height: 100px;
        background: yellow;
        margin-top: 20px;
      }
    </style>
  </head>
  <body>
    <div class="div1"></div>
    <div class="div2"></div>
  </body>
</html>
